package com.tjsoft.demo.student.service.impl;

import java.util.List;

import com.tjsoft.demo.student.dao.StudentDAO;
import com.tjsoft.demo.student.model.Student;
import com.tjsoft.demo.student.service.StudentService;


public class StudentServiceImpl implements StudentService {

	private StudentDAO studentDAO;

	public StudentDAO getStudentDAO() {
		return studentDAO;
	}

	public void setStudentDAO(StudentDAO studentDAO) {
		this.studentDAO = studentDAO;
	}

	@Override
	public void delete(Student entity) {
		studentDAO.delete(entity);
	}

	@Override
	public List<Student> findAll() {
		return studentDAO.findAll();
	}

	@Override
	public Student findById(Long sid) {
		return studentDAO.findById(sid);
	}

	@Override
	public List<Student> findList(String hql, Object... values) {
		return studentDAO.findList(hql, values);
	}

	@Override
	public void save(Student entity) {
		studentDAO.save(entity);
	}

	@Override
	public void update(Student entity) {
		studentDAO.update(entity);
	}
	
	
}
